package com.pureut.equipment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.equipment.domain.PatrolItem;
import com.pureut.equipment.domain.dto.PatrolItemDto;
import com.pureut.equipment.domain.vo.PatrolItemVo;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;

import java.util.List;

/***
 *
 * Author:巡检项目service
 * Date:2023/04/26 9:46
 * @DESC
 */
public interface PatrolItemService extends IService<PatrolItem> {

    /**
     * 巡检项目列表
     */
    TableDataInfo<PatrolItemDto> getList(PatrolItemVo patrolItemVo, PageQuery pageQuery);

    /**
     * 新增
     */
    boolean add(PatrolItemVo patrolItemVo) throws Exception;

    /**
     * 修改
     */
    boolean updatePatrolItem(PatrolItemVo patrolItemVo);

    /**
     * 删除
     */
    boolean deletePatrolItem(Long id);

    /**
     * 查看
     */
    PatrolItemDto queryPatrolItem(Long id);
}
